//
//  DULanguage.h
//  language
//
//  Created by duyujin1 on 2021/8/1.
//

#import <Foundation/Foundation.h>

static NSString * const AppLanguage=@"appLanguage";
#define DUlanguage(key,comment) [NSBundle bundleWithPath:[[NSBundle mainBundle] pathForResource:[NSString stringWithFormat:@"%@",[[NSUserDefaults standardUserDefaults] objectForKey:AppLanguage]] ofType:@"lproj"]] localizedStringForKey:(key) value:@"" table:nil

NS_ASSUME_NONNULL_BEGIN

@interface DULanguage : NSObject

+(DULanguage *) sharedInstance;
-(void)initLanguage;
-(NSString *)currentLanguage;
-(void)setLanguage:(NSString *)language;
-(void)systemLanguage;
+(void)setLanguage:(NSString *)language;

@end

NS_ASSUME_NONNULL_END
